//
//  ZJNeedCategoryView.m
//  ShangHaiHuDongApp
//
//  Created by ZJ on 2017/8/1.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "ZJNeedCategoryView.h"


@interface ZJNeedCategoryView ()

@end

@implementation ZJNeedCategoryView

- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title
{
    self = [super initWithFrame:frame title:title];
    if (self) {
        
        self.titleLabel.width = [NSString zj_sizeOfString:title font:self.titleLabel.font width:[UIScreen zj_screenWith]].width;
        [self addSubview:self.organizationSelectView];
        self.organizationSelectView.sd_layout
        .leftSpaceToView(self.titleLabel, 5 * [UIScreen zj_screenWScale])
        .rightSpaceToView(self, 12 * [UIScreen zj_screenWScale])
        .topSpaceToView(self, 0)
        .bottomSpaceToView(self, 0);
        
    }
    return self;
}



- (ZJOrganizationSelectView *)organizationSelectView{
    if (_organizationSelectView == nil){
        _organizationSelectView = [[ZJOrganizationSelectView alloc] initWithFrame:CGRectMake(0, 0, 10, 10)];
        _organizationSelectView.textField.placeholder = @"";
        _organizationSelectView.userInteractionEnabled = NO;
    }
    return _organizationSelectView;
}

@end
